number, TCP establishes this position 1 when establishing a connectionThe FIN sender completes the send task bit, and when TCP completes the data transfer needs to disconnect, the side that proposes the disconnection will have this position 1The Baotou structure of TCP:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 1
completes the send task bit, and when TCP completes the data transfer needs to disconnect, the side that proposes the disconnection will have this position 1TCPthe Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum length of the TCP header, which is
the disconnection will have this position 1TCPthe Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum length of the TCP header, which is 20 bytes.UDP(User data Protocol, Subscriber Datagram Protocol)(1) UDP is a non-connected protocol that transmits
position 1 when connection is establishedFINThe sender completes the send task bit, and when TCP completes the data transfer needs to disconnect, the side that proposes the disconnection will have this position 1TCPthe Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This
SYN_RECV state.
(3) Third handshake: Client A receives Server B's Syn+ack package, sends acknowledgment packet ACK (ack=k+1) to Server B, the packet is sent, client A and Server B enter the established state, complete three handshake.
Three handshake is completed and the client and server begin to transfer data.
Confirmation Number: Its value equals the sender's send sequence number +1(i.e. the next serial number the receiver expects to receive).
Figure 1 TCP Three-time handshake establishmen
Server B, the packet is sent, client A and Server B enter the established state, complete three handshake.Three handshake is completed and the client and server begin to transfer data.Confirmation Number: Its value equals the sender's Send the ordinal +1(that is, the next serial number the receiver expects to receive). Figure 1 TCP Three-time handshake establishment connectionTCP the Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header
completed and the client and server begin to transfer data.Confirmation Number: Its value equals the sender's send sequence number +1(i.e. the next serial number the receiver expects to receive). Figure 1 TCP Three-time handshake establishment connectionTCP the Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsC
connectionThe FIN sender completes the send task bit, and when TCP completes the data transfer needs to disconnect, the side that proposes the disconnection will have this position 1TCPthe Baotou structure:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum length of
sender completes the send task bit, and when TCP completes the data transfer needs to disconnect, the side that proposes the disconnection will have this position 1The Baotou structure of TCP:Source Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum length of the TCP heade
-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved 6-bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum length of the TCP header, which is 20 bytes.UDP(User data Protocol, Subscriber Datagram Protocol)(1) UDP is a non-connected protocol that transmits data before the source and terminal do not establish a connection, when it wants t
slightly faster.2. TCP Header StructureSource Port 16-bitDestination Port 16-bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved6 bitControl Code 6 BitsWindow size 16 bitsOffset 16 bitsChecksum 16-bitOption 32-bit (optional)This gives us the minimum size of the TCP header. That's 20 bytes.UDP header StructureSource Port 16-bitDestination Port 16-bitLength 16 bitChecksum 16-bit(UDP packets are much smaller. This is true. Bec
may drop packets. TCP guarantees data order, UDP does not guaranteeIn addition to the situation of the GPRS network to discuss their differences in detail:1.TCP transmission has a certain delay. About 1600MS (mobile provided), UDP responds slightly faster.2. TCP Header StructureSOURCE Port16 BitDestination Port 16 bitSerial Number 32 bitsResponse Number 32 bitTCP Header Length 4 bitsReserved6 bitControl Code 6 BitsForm size 16-bitOffset 16 bitsChecks
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.